import { request } from '@/network/request.js'

// 用户名密码登录
export const login = function (entity) {
    return request.post('/login/phone', entity)
}
//用户名验证码登录
export const loginByCode = function (entity) {
    return request.post('/login/phone/code', entity)
}
// 发送登录验证码
export const sendLoginCode = function (phone) {
    return request.get(`/code/login/phone/${phone}`);
}

